package org.scboy.logger.config;

import java.util.ArrayList;
import java.util.List;

import org.scboy.common.beans.SelectItem;
import org.scboy.common.enums.InputType;
import org.scboy.common.impl.SystemConfig;

public class LoggerOpenRquestLog implements SystemConfig {

	@Override
	public String getCode() {
		return "LOGGER_OPEN_REQUEST_LOG";
	}

	@Override
	public String getConfigName() {
		return "是否开启请求访问日志";
	}

	@Override
	public String defaultValue() {
		return "OPEN";
	}

	@Override
	public InputType inputType() {
		return InputType.RADIOBOX;
	}

	@Override
	public List<SelectItem> getSelectData() {
		List<SelectItem> items= new ArrayList<SelectItem>();
		items.add(new SelectItem("开启","OPEN"));
		items.add(new SelectItem("关闭","CLOSE"));
		return items;
	}

	@Override
	public String getNote() {
		return "用户访问微服务的日志记录。";
	}

	@Override
	public int getIndex() {
		return 2;
	}

}
